
import type { FilterRuleOptions, TypeConfig, RuleGenerationResult } from './types';
import { createBaseRule } from './ruleGeneratorUtils';

const flaskConfig: TypeConfig = {
    class: 'Flask',
    icon: 'Green',
    iconShape: 'Diamond',
    name: '药剂',
    fontSize: 45
};

export function generateFlaskRule(options: FilterRuleOptions): RuleGenerationResult {
    // 药剂规则生成
    return createBaseRule(options, {
        name: flaskConfig.name,
        class: flaskConfig.class,
        defaultColor: '#00FF00',  // 绿色作为药剂的默认颜色
        defaultBgColor: '#000000',
        fontSize: flaskConfig.fontSize,
        icon: flaskConfig.icon,
        iconShape: flaskConfig.iconShape
    });
}